package com.sgb.kjwl.view.ui.activity.ShoppingCar;

import android.content.Context;
import android.content.Intent;

import com.sgb.kjwl.AppActivity;
import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ActivityShoppingCartBinding;
import com.sgb.kjwl.view.ui.fragment.self.ShoppingCartFragment;

import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.FragmentManager;

/**
 * 购物车界面
 * @author Administrator
 */
public class ShoppingCartActivity extends AppActivity {

    ActivityShoppingCartBinding binding;


    public static void start(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, ShoppingCartActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
        context.startActivity(intent);
    }

    @Override
    protected void initView() {
        super.initView();
        binding = DataBindingUtil.setContentView(this, R.layout.activity_shopping_cart);
        FragmentManager fragmentManager = getSupportFragmentManager();
        fragmentManager.beginTransaction().add(R.id.frameContent, new ShoppingCartFragment()).commit();
    }
}
